{extend name="index/index" /}

{block name="main"}

<div class="tpl-content-wrapper">
    <div class="tpl-content-page-title">
        RBAC 列表
    </div>
    <ol class="am-breadcrumb">
        <li>
            <a href="{:url('admin/index/index')}" class="am-icon-home">首页</a>
        </li>
        <li class="am-active">节点列表</li>
    </ol>
    <div class="tpl-portlet-components">
        <div class="portlet-title"></div>
        <div class="tpl-block">
            <div class="am-g">
                <div class="am-u-sm-12 am-u-md-3">
                    <a href="{:url('admin/node/add')}" class="am-btn am-btn-success am-btn-xs am-text-secondary" style="color: white;"><span class="am-icon-pencil-square-o" style="border-radius: 5px;color:white;"></span> 新增</a>
                </div>
            </div>
            <div class="am-g">
                <div class="am-u-sm-12">
                    <form class="am-form">
                        <table class="am-table am-table-striped am-table-hover table-main">
                            <thead>
                                <tr>
                                    <th class="table-id">ID</th>
                                    <th class="table-title">节点</th>
                                    <th class="table-type">模块</th>
                                    <th class="table-type">方法</th>
                                    <th class="table-set">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                {volist name="list" id="node"}
                                <tr>
                                    <td>{$node.id}</td>
                                    <td>{$node.name}</td>
                                    <td style="width: 400px;">{$node.mname}</td>
                                    <td style="width: 400px;">{$node.aname}</td>
                                    <td style="width: 250px;">
                                        <div class="am-btn-toolbar">
                                        <div class="am-btn-group am-btn-group-xs">
                                            <a href="{:url('admin/node/edit',['id'=>$node['id']])}" class="am-btn am-btn-default am-btn-xs am-text-secondary">
                                                <span class="am-icon-pencil-square-o"></span> 编辑
                                            </a>
                                            <a class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only del" href="{:url('admin/node/delete',['id'=>$node['id']])}">
                                                <span class="am-icon-trash-o"></span> 删除
                                            </a>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                {/volist}
                            </tbody>
                        </table>
                        <hr>

                    </form>
                </div>

            </div>
        </div>
        <div class="tpl-alert"></div>
    </div>
</div>
{/block}


